s = input("输入字符：")
zimu = 0
space = 0
num = 0
other = 0
for i in s :
    if i.isalpha() :
        zimu += 1
    elif i.isspace() :
        space +=1
    elif i.isdigit():
        num +=1
    else:
        other +=1
    print('英文字母有{0}个，空格有{1}个，数字有{2}个，其他字符有{3}个'
          .format(zimu,space,num,other))
